package com.demo.gateway.vo.core;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.AllArgsConstructor;
import lombok.Data;
/**
 * @author: demo
 * @date: 2020年5月27日
 * @Document : 消息返回VO
 */
@Data
@JsonInclude(Include.NON_NULL)
@AllArgsConstructor
public class ReturnVO {
	private Boolean success;
	private String msg;
	
	public  static  ReturnVO  ok(String msg) {
		return  new ReturnVO(true,msg);
	}
	
	public  static  ReturnVO  fail(String msg) {
		return  new ReturnVO(false,msg);
	}
}
